﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


public class Task
{
    public int id { get; set; }
    public String name { get; set; }
    public String description { get; set; }
    public DateTime created { get; set; }
    public DateTime finished { get; set; }
    public double timeSpent { get; set; }
    public Status status { get; set; }
    public Priority priority { get; set; }
    public User createdBy { get; set; }
    public User assigned { get; set; }
    public List<Comment> comments { get; set; }
    
	public Task()
	{

	}
}

public enum Status
{   
    created,
    ongoing,
    finished,
    awaiting
}
public enum Priority
{
    low,
    medium,
    high,
    critical
}